<?php
$a = 1

if ($a >= 2) {
    $a = 2;
} elseif ($a == 5) {
    $a = 3;
} else {
    $a = 4;
}
?>